package com.community.dao;

import com.community.pojo.CommentOperation;
import org.apache.ibatis.annotations.Param;

public interface CommentOperationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CommentOperation record);

    int insertSelective(CommentOperation record);

    CommentOperation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommentOperation record);

    int updateByPrimaryKey(CommentOperation record);

    int findByParam(@Param("cid") int cid,
                    @Param("type") int type,
                    @Param("userName") String userName);

    int delByParam(@Param("cid") int cid,
                   @Param("type") int type,
                   @Param("userName") String userName);
}